<?php
function sseo(){
for ($a=1;$a<=5;$a++){
$makan[$a]= round((1/rand(5,25)), 5);
}
arsort($makan);
foreach ($makan as $key => $val){
echo "$key = $val";
$i++;$j[$i]=$key;
echo "; ".$i.";".$j[$i]."<br/>\n";
}

for ($a=1;$a<=5;$a++){
echo "<br/>".$j[$a]." =".$makan[$j[$a]];
}}
?>

<?php
function sorting($makan1=1)
{
arsort($makan1);
foreach ($makan1 as $key => $val){
//echo "$key = $val";
$i++;$j[$i]=$key;
}
return $j;
}
?>